path_get_kind

Returns whether a path is smooth or straight.

语法:

path_get_kind(index);


参数 描述
index The index of the path to check.


返回: Boolean(布尔值)


描述

Paths can be either smooth or straight (a smooth path calculates a curved path around the defining points, whereas a straight path just goes straight from one point to another). This function can be used to find out whether the given path is smooth (true) or not (false).


例如:

kind = path_get_kind(c_path);

This will set "state" to either true or false depending on the state of path0.


上一页: Path Information
下一页: path_get_length
© Copyright YoYo Games Ltd. 2018 All Rights Reserved